﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DocumentFolderEditControl.ascx.cs" Inherits="LenderClearingHouse.DocumentFolderEditControl" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">
    <table cellspacing="1" cellpadding="1" width="100%" border="0">
        <tr>
          <td style="width: 15%">Folder&nbsp;Name:</td>
          <td style="width: 15%">
            <asp:TextBox ID="tbFolderName" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.FolderName" ) %>' TextMode="SingleLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbFolderName" ErrorMessage="Folder Name is required" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
          </td>
          <td style="width: 15%">
            <asp:CheckBox ID="chkInvestorAdmin" runat="server" Text="Investor Admin" AutoPostBack="True" OnCheckedChanged="Rights_CheckedChanged" />
          </td>
          <td style="width: 15%">
            <asp:DropDownList ID="ddlInvestorAdmin" runat="server" Visible="False">
              <asp:ListItem Value="RW">Full Access</asp:ListItem>
              <asp:ListItem Value="RO">Read Only</asp:ListItem>
            </asp:DropDownList>
          </td>
          <td style="width: 15%">
            <asp:CheckBox ID="chkInvestor" runat="server" Text="Investor" AutoPostBack="True" OnCheckedChanged="Rights_CheckedChanged" />
          </td>
          <td style="width: 25%">
            <asp:DropDownList ID="ddlInvestor" runat="server" Visible="False">
              <asp:ListItem Value="RW">Full Access</asp:ListItem>
              <asp:ListItem Value="RO">Read Only</asp:ListItem>
            </asp:DropDownList>
          </td>
        </tr>
        <tr>
          <td>Prefix:</td>
          <td>
            <asp:TextBox ID="tbPrefix" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Prefix" ) %>' TextMode="SingleLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbPrefix" ErrorMessage="Prefix is required" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
          </td>
          <td>
            <asp:CheckBox ID="chkUser" runat="server" Text="User" AutoPostBack="True" OnCheckedChanged="Rights_CheckedChanged" />
          </td>
          <td>
            <asp:DropDownList ID="ddlUser" runat="server" Visible="False">
              <asp:ListItem Value="RW">Full Access</asp:ListItem>
              <asp:ListItem Value="RO">Read Only</asp:ListItem>
            </asp:DropDownList>
          </td>
          <td>
            <asp:CheckBox ID="chkEscrowUser" runat="server" Text="Escrow User" AutoPostBack="True" OnCheckedChanged="Rights_CheckedChanged" />
          </td>
          <td> 
            <asp:DropDownList ID="ddlEscrowUser" runat="server" Visible="False">
              <asp:ListItem Value="RW">Full Access</asp:ListItem>
              <asp:ListItem Value="RO">Read Only</asp:ListItem>
            </asp:DropDownList>
          </td>
        </tr>
    </table>
</telerik:RadAjaxPanel>
<table>
    <tr>
        <td align="left" colspan="4" style="padding-left: 20px; padding-top: 10px;">
            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'>
            </asp:Button>
            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'></asp:Button>
            &nbsp;
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
        </td>
    </tr>
</table>
<asp:HiddenField ID="hfFolderId" runat="server" Value='<%# DataBinder.Eval( Container, "DataItem.FolderId" ) %>' />

